// Author: wsfuyibing <682805@qq.com>
// Date: 2025-06-13

package record

import (
	"gitee.com/go-wares/framework-iris/framework/src/logics"
	"github.com/kataras/iris/v12"
	"server/app/http/logics/master/ticket/record/choose_seat"
	"server/app/http/logics/master/ticket/record/choose_seat_info"
	"server/app/http/logics/master/ticket/record/choose_time"
	"server/app/http/logics/master/ticket/record/info"
	"server/app/http/logics/master/ticket/record/return_fish"
	"server/app/http/logics/master/ticket/record/start"
	"server/app/http/logics/master/ticket/record/stop"
)

// Controller
// 购票记录操作.
//
// @Middleware("authorizer")
// @Middleware("master")
type Controller struct{}

// GetChooseSeatInfo
// 作钓钓位详情.
func (o *Controller) GetChooseSeatInfo(i iris.Context) {
	logics.Do(i, choose_seat_info.New)
}

// GetInfo
// 购票记录详情.
func (o *Controller) GetInfo(i iris.Context) {
	logics.Do(i, info.New)
}

// PostChooseSeat
// 选择作钓钓位.
func (o *Controller) PostChooseSeat(i iris.Context) {
	logics.Do(i, choose_seat.New)
}

// PostChooseTime
// 选择作钓时间.
func (o *Controller) PostChooseTime(i iris.Context) {
	logics.Do(i, choose_time.New)
}

// PostReturnFish
// 回鱼操作.
func (o *Controller) PostReturnFish(i iris.Context) {
	logics.Do(i, return_fish.New)
}

// PostStart
// 开始作钓.
func (o *Controller) PostStart(i iris.Context) {
	logics.Do(i, start.New)
}

// PostStop
// 结束作钓.
func (o *Controller) PostStop(i iris.Context) {
	logics.Do(i, stop.New)
}
